<template>
  <div>
    <div v-html="haoping"></div>
  </div>
</template>

<script>
export default {
  name: "haoping",
  props: ["haoping"],
};
</script>

<style>
/* 如果使用了 v-html  获取的后台的排好版的数据字符串，在写样式的时候，需要将  scoped删除 */
.top-rated {
  padding: 12px 0 12px 15px;
  background-color: #fff;
  margin-bottom: 10px;
}
.top-rated .title {
  margin: 0;
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}
.top-rated-list {
  overflow: scroll;
  white-space: nowrap;
}
.top-rated-item {
  display: inline-block;
  width: 85px;
  overflow: hidden;
  margin-right: 10px;
}
.top-rated-item .poster {
  width: 85px;
  height: 115px;
  position: relative;
  margin-bottom: 6px;
}
.top-rated-item .poster img {
  height: 100%;
}
</style>